> ## Documentation Index
> Fetch the complete documentation index at: https://sequence-0fb8d9e6-relayer_docs.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Stytch Configuration for Embedded Wallet

> Learn how to configure a Stytch client for your Embedded Wallet instance. Follow steps to create and retrieve a Public Token from the Stytch dashboard.

In order to have Stytch auth integrated into your Embedded Wallet instance, you have to configure a Stytch application in the [Stytch Dashboard](https://stytch.com/dashboard) and configure an Embedded Wallet in [Sequence Builder](https://sequence.build/). Begin, by starting with the following below steps:

<Warning>
  The Stytch authentication is currently in early access. To enable them, please visit [https://sequence.build/earlyaccess](https://sequence.build/earlyaccess) and turn on the functionality.
</Warning>

<Steps>
  <Step title="Sign Up / Sign In">
    First access the [sign in page](https://stytch.com/dashboard):
  </Step>

  <Step title="Create a Project">
    From the dropdown of projects once signed in, select `Create new project`:

    <Frame>
      <img src="https://mintcdn.com/sequence-0fb8d9e6-relayer_docs/zO7SusnFQlIZVQEd/images/builder/stytch_create_new_project.png?fit=max&auto=format&n=zO7SusnFQlIZVQEd&q=85&s=73d6bcea5841940b92892b49733e3e09" alt="Create a Project" width="1556" height="677" data-path="images/builder/stytch_create_new_project.png" />
    </Frame>

    Then select `CONSUMER AUTHENTICATION`:

    <Frame>
      <img src="https://mintcdn.com/sequence-0fb8d9e6-relayer_docs/zO7SusnFQlIZVQEd/images/builder/stytch_create_project.png?fit=max&auto=format&n=zO7SusnFQlIZVQEd&q=85&s=1f7e378079be56303fc0e994822a71f8" alt="Create new Project" width="1556" height="677" data-path="images/builder/stytch_create_project.png" />
    </Frame>

    And finally select `Create project`
  </Step>

  <Step title="Obtain a Stytch Project ID & Stytch Public Token">
    From the bottom of the first screen of `Home` copy and save somewhere safe the `Stytch Project ID` & `Stych Public Token`:

    <Frame>
      <img src="https://mintcdn.com/sequence-0fb8d9e6-relayer_docs/zO7SusnFQlIZVQEd/images/builder/stytch_obtain_keys.png?fit=max&auto=format&n=zO7SusnFQlIZVQEd&q=85&s=ddd4bfbe0b3ee3b69a8132568cae3317" alt="Obtain a Project ID & Stytch Public Token" width="1398" height="659" data-path="images/builder/stytch_obtain_keys.png" />
    </Frame>
  </Step>

  <Step title="Update the Redirect URL">
    For local development use `http://localhost:4444/authenticate`

    <Frame>
      <img src="https://mintcdn.com/sequence-0fb8d9e6-relayer_docs/zO7SusnFQlIZVQEd/images/builder/stytch_create_new_redirect_uri.png?fit=max&auto=format&n=zO7SusnFQlIZVQEd&q=85&s=f2c27ffb8527ca0dd66833d797353ff4" alt="Update Redirect Url" width="1616" height="763" data-path="images/builder/stytch_create_new_redirect_uri.png" />
    </Frame>

    Enable `Login` and `Register`, select `Set as default` and select `Confirm`:

    <Frame>
      <img src="https://mintcdn.com/sequence-0fb8d9e6-relayer_docs/zO7SusnFQlIZVQEd/images/builder/stytch_create_new_redirect_uri_confirm.png?fit=max&auto=format&n=zO7SusnFQlIZVQEd&q=85&s=ab9804e8f1a72cd632757f08b34856ab" alt="Obtain a Project ID" width="1536" height="705" data-path="images/builder/stytch_create_new_redirect_uri_confirm.png" />
    </Frame>
  </Step>

  <Step title="Update the Allowed Origins for SDK">
    For local development, ensure that your development URL is passed correclt such as `http://localhost:4444`

    <Frame>
      <img src="https://mintcdn.com/sequence-0fb8d9e6-relayer_docs/zO7SusnFQlIZVQEd/images/builder/stytch_add_url_to_sdk.png?fit=max&auto=format&n=zO7SusnFQlIZVQEd&q=85&s=376f3c18e10eda9dac5594db5697bac0" alt="Update url for SDK" width="1750" height="728" data-path="images/builder/stytch_add_url_to_sdk.png" />
    </Frame>
  </Step>

  <Step title="Builder Configuration">
    Next, enable Stytch authentication in the Sequence Builder by accessing your Project, the Embedded Wallet Configuration section, then adding a Login Provider:

    <Frame>
      <img src="https://mintcdn.com/sequence-0fb8d9e6-relayer_docs/PqKQDagG3Qb-h8VG/images/builder/builder_stytch_add_provider.png?fit=max&auto=format&n=PqKQDagG3Qb-h8VG&q=85&s=b4a9a6ea614419c377018323471ded4b" alt="add login provider" width="1880" height="722" data-path="images/builder/builder_stytch_add_provider.png" />
    </Frame>

    Finally, selecting `Stytch` in the dropdown.

    <Frame>
      <img src="https://mintcdn.com/sequence-0fb8d9e6-relayer_docs/PqKQDagG3Qb-h8VG/images/builder/builder_stytch_select_provider.png?fit=max&auto=format&n=PqKQDagG3Qb-h8VG&q=85&s=738d58c9dd755900e4865761712d91d1" alt="select stytch" width="2459" height="1106" data-path="images/builder/builder_stytch_select_provider.png" />
    </Frame>

    Then inputting your `Stytch Project ID`, selecting `Save changes` and selecting the purple `Update configuration` to input your password to update the Configuration.
  </Step>
</Steps>
